import { DcsModel } from '@/api/manager/dcs/interface'
import { compareMtKey } from '../../../../utils/utils'

export const dcsListSort = (dcsList: DcsModel[]) => {
	let result = dcsList.sort((a, b) => b.attr.weight - a.attr.weight || compareMtKey(a.mtKey, b.mtKey))
	return result
}
